improve ordering for sjs-lib-index.json generation