#How to quicksort an array of objects

6 messages · Page 1 of 1 (latest)

viscid cliff
#

So I have an array of Employees and I'm trying to quicksort them by their last name. I have a method, returnLastName, but can't figure out how to quicksort them. is anyone able to help?

royal socketBOT
#

This post has been reserved for your question.

Hey @viscid cliff! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

royal socketBOT
#

💤 Post marked as dormant

This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.

viscid cliff
#

Anyone help? 🙏

tall nacelle
#

Help on what?
Use list.sort(Comparator.comparing(Employee::returnLastName))
or if you must write the quicksort yourself, lookup how to make a quicksort.
What do you need help with?