Complex sentence: In such cases, the same sorting methods can be used to sort the structures according to some key as a structure element; for example, sorting records of students according to roll numbers or names or grades.
Split into simpler sentences: In such cases the same sorting methods can be used to sort the structures according to some key as a structure element. For example, sorting records of students according to roll numbers or names or grades.