LPS-38325 order by condition fields logic must match compareTo logic. One is used by the database, and one is used if you have the whole list in memory and use you use Collections.sort