updated sort with chromosome sort.