Corrected comment typo, missing semicolons. Renamed reorderElfinArray to
reorderArrayByPOS to make it clearer on its truely general
applicability.