Hi Sateesh,
Unfortunately your solution does not work with dropdowns, it only works if for example you are showing the result data on a data table.
When you try using the result data on a dropdown, the dropdown component automatically sorts the months alphabetically instead of the order that it came from the query.