sorting related classes on vclass edit page