order-by-sort (npm): Takes an array of objects and sorts them by an arbitrary number of common string or number fields with control over direction and placement of null elements.
Keywords: postgres|pg|hasura|graphql|typescript|typed|javascript|sorting|sorting-algorithms-implemented