From 856c8ef2b478e86ca7545bb8b012fad8e30fc7cd Mon Sep 17 00:00:00 2001 From: "Andrew G. Brown" Date: Wed, 8 Mar 2023 13:03:04 -0800 Subject: [PATCH] get_extended_data_from_NASIS_db: parent material sort order should use pmorder if populated --- R/get_extended_data_from_NASIS_db.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/R/get_extended_data_from_NASIS_db.R b/R/get_extended_data_from_NASIS_db.R index 5846c3a8..cb18d36f 100644 --- a/R/get_extended_data_from_NASIS_db.R +++ b/R/get_extended_data_from_NASIS_db.R @@ -386,7 +386,8 @@ LEFT OUTER JOIN ( q.sitepm <- "SELECT siteiidref as siteiid, seqnum, pmorder, pmdept, pmdepb, pmmodifier, pmgenmod, pmkind, pmorigin FROM sitepm_View_1 AS spm - INNER JOIN site_View_1 AS s ON spm.siteiidref = s.siteiid;" + INNER JOIN site_View_1 AS s ON spm.siteiidref = s.siteiid + ORDER BY spm.siteiidref, pmorder;" # toggle selected set vs. local DB if (SS == FALSE) {