adding sorting to leaders