I have a folder with lot of zip files based on semantic versions i want to get the top 5 versions and delete rest. I want to know how can i query the latest top 5 versions in a query
MyService- 1.0.2.5.zip
MyService- 1.0.2.6.zip
MyService- 1.0.2.7.zip
MyService- 2.0.0.63.zip
MyService- 2.0.0.64.zip
MyService- 2.0.0.65.zip
MyService- 2.0.0.66.zip and so on
MyService- 3.0.0.11.zip
MyService- 3.0.0.12.zip and so on
I want the top 5 or top 1 version is there any utility or function which gives me that abilitya