Reduce call chain of qsort

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