Cognizant Interview Question

How to sort arrays. How to handle web table both static and dynamic