Function horizontalSort

Sorts raw poses by horziontal. Leftmost pose will be first.