def METHOD_NAME(self, item):
    """Sorts the hashes in a nice way.
    """
    key = item[0]
    if key == 'label':
        return '00label'
    elif key == 'matrix':
        return '01matrix'
    elif key == 'x':
        return '02x'
    elif key == 'y':
        return '03y'
    elif key == 'w':
        return '04w'
    elif key == 'h':
        return '05h'
    elif key == 'flags':
        return '06flags'
    return key