JavaScript : How to sort an array of objects by multiple fields?

Published --