qwerty
added Tfunction and sort