It'd be possible to extend the compiler service to include JsvIterator which would make iteration over JsVars a lot easier... However in this case for sorting it's not such a huge help as it's a nightmare having to sort via iterators.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
It'd be possible to extend the compiler service to include JsvIterator which would make iteration over JsVars a lot easier... However in this case for sorting it's not such a huge help as it's a nightmare having to sort via iterators.