How To Use Sort Method To Sort Through Object Attributes Java