I have created a list
let keywords = ['do', 'if', 'in', 'for', 'new', 'try', 'for','var'];
now I'm able to filter based on the string and I'm able to sort in descending and ascending order also.
But I'm unable to sort based on the string,
EX:- I need to sort the list with 'for' (for needs to come on the top of the list and remaining will be as it is).