From 7218dcd3ff441a27e4165d795a95fa40b895019f Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Tue, 27 Oct 2020 10:53:18 -0700 Subject: [PATCH] Changed file scan default sort order and order of columns. RPS-24 --- .../scan-estimate-list.molecule.jsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/components/molecules/scan-estimate-list/scan-estimate-list.molecule.jsx b/src/components/molecules/scan-estimate-list/scan-estimate-list.molecule.jsx index 0a36b27..bc6462c 100644 --- a/src/components/molecules/scan-estimate-list/scan-estimate-list.molecule.jsx +++ b/src/components/molecules/scan-estimate-list/scan-estimate-list.molecule.jsx @@ -35,18 +35,20 @@ export function ScanEstimateListMolecule({ scanLoading, estimates }) { key: "ins_co_nm", sorter: (a, b) => alphaSort(a.ins_co_nm, b.ins_co_nm), }, + { + title: "Last Name", + dataIndex: "ownr_ln", + key: "ownr_ln", + defaultSortOrder: "ascend", + sorter: (a, b) => alphaSort(a.ownr_ln, b.ownr_ln), + }, { title: "First Name", dataIndex: "ownr_fn", key: "ownr_fn", sorter: (a, b) => alphaSort(a.ownr_fn, b.ownr_fn), }, - { - title: "Last Name", - dataIndex: "ownr_ln", - key: "ownr_ln", - sorter: (a, b) => alphaSort(a.ownr_ln, b.ownr_ln), - }, + { title: "Vehicle", dataIndex: "vehicle",