Update utils.py

Change ordering algorithm to use reddit algorithm