added table sorting

Signed-off-by: Smita Kumari <kumarismita62@gmail.com>