fix order

deepsource-autofix-76c6eb20
Dan Gowans 2022-12-28 13:23:50 -05:00
parent ed9a98e7f8
commit 07a10f5de1
2 changed files with 2 additions and 2 deletions

View File

@ -124,7 +124,7 @@ export const getLotOccupancies = (filters, options, connectedDatabase) => {
" left join LotTypes lt on l.lotTypeId = lt.lotTypeId" +
" left join Maps m on l.mapId = m.mapId" +
sqlWhereClause +
" order by o.occupancyStartDate desc, ifnull(o.occupancyEndDate, 99999999) desc, l.lotName, o.lotId" +
" order by o.occupancyStartDate desc, ifnull(o.occupancyEndDate, 99999999) desc, l.lotName, o.lotId, o.lotOccupancyId desc" +
(options.limit === -1
? ""
: " limit " + options.limit + " offset " + options.offset))

View File

@ -192,7 +192,7 @@ export const getLotOccupancies = (
" left join LotTypes lt on l.lotTypeId = lt.lotTypeId" +
" left join Maps m on l.mapId = m.mapId" +
sqlWhereClause +
" order by o.occupancyStartDate desc, ifnull(o.occupancyEndDate, 99999999) desc, l.lotName, o.lotId" +
" order by o.occupancyStartDate desc, ifnull(o.occupancyEndDate, 99999999) desc, l.lotName, o.lotId, o.lotOccupancyId desc" +
(options.limit === -1
? ""
: " limit " + options.limit + " offset " + options.offset)