Implement sorted names array. Update order mistake in tests.