Fix a bug where sorting of customers didnt worked