Sort entries in tests and example