Process of classifying cells of the immune system based on structural and functional differences. The process is commonly used to analyze and sort t-lymphocytes into subsets based on CD antigens by the technique of flow cytometry.