As a user,
I want to see all information in the app sorted alphabetically
so that I can quickly scan it.
In EndpointService.getAll(), sort the rows alphabetically by a selected column, adding a sortIndex to each row to indicate where it falls in the sort order.
[x] Modify query so it sorts in SQL (more performant than sorting in Node)
[x] Iterate over results and add incremented sortIndex to each row of results before sending response
As a user, I want to see all information in the app sorted alphabetically so that I can quickly scan it.
In
EndpointService.getAll()
, sort the rows alphabetically by a selected column, adding asortIndex
to each row to indicate where it falls in the sort order.sortIndex
to each row of results before sending response