Adding in previously vendored hash sorting.