Sort the questions based on user requirements i.e if we have various levels of questions like easy, medium and Hard and if we want to solve only easy questions we can sort them based on user input. Similarly we can choose subject from which we need to het questions