sort by vertical position