feat: add `--sort` arg to `delete-cache` to sort by size (#2815)
* feat: add `--sort` arg to `delete-cache` to sort by size
* update the arg to take `size`
* implement `alphabetical`, `lastUpdated` and `lastUsed` sorting options
* fixes
* Apply suggestions from code review
* fix test for python 3.8
* fix
* fix
* make the test less flaky
* fix another test
---------
Co-authored-by: Celina Hanouti <hanouticelina@gmail.com>
Co-authored-by: Lucain <lucainp@gmail.com>