so I\'m trying to make a method that would position duplicate values next to each other. The method i did could do this but the problem is it sorts the list from low to high