add sorting the hacky way