Mercurial > wow > worldplan
diff ClassPlanShipments.lua @ 107:b2be2de2b133
live branch cleanup
author | Nenue |
---|---|
date | Sun, 28 May 2017 20:16:05 -0400 |
parents | 1197c8825eda |
children | caa482329919 |
line wrap: on
line diff
--- a/ClassPlanShipments.lua Sun May 28 19:58:56 2017 -0400 +++ b/ClassPlanShipments.lua Sun May 28 20:16:05 2017 -0400 @@ -210,18 +210,18 @@ ShipmentList.SortHandler = function(a, b) local status = false - if b.isComplete ~= a.isComplete then - if a.isComplete then + if b.isComplete ~= a.isComplete then + if a.isComplete then + status = true + end + else + if a[SortKey] then + if b[SortKey] then + status = (SortTable[a[SortKey]] < SortTable[b[SortKey]]) + else status = true end else - if a[SortKey] then - if b[SortKey] then - status = (SortTable[a[SortKey]] < SortTable[b[SortKey]]) - else - status = true - end - else if a.profileKey ~= b.profileKey then status = (a.profileKey < b.profileKey)