Fixed Sort
Functional Javascript