tags almost finished missing sort function