Fix sorting for dynamicly added rows