Sort classes in tags page