Skip to content

Commit

Permalink
Enable order-by in two queries. (#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
tecimovic authored Jun 4, 2022
1 parent ca9cbec commit fd3adab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src-electron/db/query-command.js
Original file line number Diff line number Diff line change
Expand Up @@ -1516,7 +1516,7 @@ async function selectCommandDetailsFromAllEndpointTypesAndClusters(
}

// Ordering of the results:
// query = query + ' ORDER BY C.MANUFACTURER_CODE, C.CODE, C.NAME'
query = query + ' ORDER BY C.MANUFACTURER_CODE, C.CODE, C.NAME'

return dbApi.dbAll(db, query).then((rows) => rows.map(commandMapFunction))
}
Expand Down
2 changes: 1 addition & 1 deletion src-electron/db/query-endpoint-type.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ async function selectAllClustersDetailsFromEndpointTypes(db, endpointTypes) {
}
}

let doOrderBy = false
let doOrderBy = true
return dbApi
.dbAll(
db,
Expand Down

0 comments on commit fd3adab

Please sign in to comment.