I have a list like, lst=[[3,7],[4,9],[8,3],[1,5],[9,4],[4,5],[3,0],[2,7],[1,9]] and then want to sort this list by the frequency of their absolute difference like below