Which is the best choice when sorting objects based on multiple attributes dynamically?

Last Updated :
Discuss
Comments

Which is the best choice when sorting objects based on multiple attributes dynamically?


Comparable

Comparator

Equals method

Serialization

Share your thoughts in the comments