sort students by connection