```
SELECT * FROM TT 
ORDER BY (SELECT AGE 
          FROM TTT 
          WHERE NAME='TANDEL'
          );

```

Result is,

```
JOHN    2
PRAVEEN 2
KUMAR   2
RAKESH  2
WASIB   2
GURUNG  2
DAYALAN 5
DEEPAK  2
TANDEL  5
RAGHU   5
GIGA    5
DEEPA   5
DEVARAJ 2

```

Note: Table TT and TTT both have same data.