add attributes sorting