first try of sorting