Tag - sorting in data structure