Reduce call chain of qsort

This will considerably improve the performance of qsort-heavy-used projects like
Android-Pinyin-IME, more discussion:
   https://groups.google.com/forum/#!topic/emscripten-discuss/Ah2CNfQ8ra4