sort subjects