Sort results by total penalty