fix sorting in top