Update utils.py

Updated tests for new sort syntax