Sort class list in select class dialog