Sorting pom according to recommendations