Think Classes and Objects . In other words, sort a List of objects containing the appropriate data values.