First attempt at fixing ordering:
No DB change; no python file change.
Problem with resizing and accuracy-- this is a rough heuristic.