adamkewley / jobson

A platform for transforming command-line applications into a job service.
Apache License 2.0
256 stars 20 forks source link

Sort job specs returned by API alphabetically #1

Closed adamkewley closed 6 years ago

adamkewley commented 6 years ago

At the moment, the /v1/specs API will respond with an array of job specs, which are sorted based on how they happened to be loaded from the filesystem (see: code). They should be sorted according to what an API client would realistically expect.

I expect a client would want the results they get to be:

In particular, this change will improve user experience in the downstream UI when rendering larger lists of job specs.