For this homework, you will explore using the Comparable and Comparator interfaces, and anonymous inner classes, non-static inner classes, and static nested classes to sort files by different properties.

Motivation

Your search engine project will need to rank search results such that the most relevant results are listed first.

There are many ways to enable sorting of custom objects. This homework helps you understand these different approaches, and hopefully decide on an approach appropriate for your project.

<aside> <img src="/icons/git_gray.svg" alt="/icons/git_gray.svg" width="40px" /> This homework assignment provides an example of how a custom object may be sorted. You only need to choose ONE approach for your project... choose the simplest one to start!

</aside>

Hints

Below are some hints that may help with this homework assignment:

These hints are optional. There may be multiple approaches to solving this homework.