Hey, I've got a list that takes in the current co-ordinates from a board. I'm trying to sort that list using the Manhattan distance heuristic but I'm not sure how to go about it. My list is simply

`list<int> list1;`

With the formula by which it should be sorted is:

`f = g + h`

Any help would be greatly appreciated :)