Fix sorting after first adding items