initial sort

naive sort