Fixes #6 - hint sorting