Mercurial > wow > worldplan
comparison ClassPlanShipments.lua @ 107:b2be2de2b133
live branch cleanup
| author | Nenue |
|---|---|
| date | Sun, 28 May 2017 20:16:05 -0400 |
| parents | 1197c8825eda |
| children | caa482329919 |
comparison
equal
deleted
inserted
replaced
| 106:1197c8825eda | 107:b2be2de2b133 |
|---|---|
| 208 end | 208 end |
| 209 | 209 |
| 210 | 210 |
| 211 ShipmentList.SortHandler = function(a, b) | 211 ShipmentList.SortHandler = function(a, b) |
| 212 local status = false | 212 local status = false |
| 213 if b.isComplete ~= a.isComplete then | 213 if b.isComplete ~= a.isComplete then |
| 214 if a.isComplete then | 214 if a.isComplete then |
| 215 status = true | |
| 216 end | |
| 217 else | |
| 218 if a[SortKey] then | |
| 219 if b[SortKey] then | |
| 220 status = (SortTable[a[SortKey]] < SortTable[b[SortKey]]) | |
| 221 else | |
| 215 status = true | 222 status = true |
| 216 end | 223 end |
| 217 else | 224 else |
| 218 if a[SortKey] then | |
| 219 if b[SortKey] then | |
| 220 status = (SortTable[a[SortKey]] < SortTable[b[SortKey]]) | |
| 221 else | |
| 222 status = true | |
| 223 end | |
| 224 else | |
| 225 if a.profileKey ~= b.profileKey then | 225 if a.profileKey ~= b.profileKey then |
| 226 status = (a.profileKey < b.profileKey) | 226 status = (a.profileKey < b.profileKey) |
| 227 | 227 |
| 228 else | 228 else |
| 229 if a.shipmentsReady and b.shipmentsReady then | 229 if a.shipmentsReady and b.shipmentsReady then |
