killercup / sortstringtosql Goto Github PK
View Code? Open in Web Editor NEWNode Module. Convert Sort Expression to SQL that can be used in 'ORDER BY' statement, e.g. '-aired,id' -> 'aird DESC NULLS LAST, id ASC NULLS LAST'.
Home Page: https://www.npmjs.org/package/sort-string-to-sql
License: MIT License