I have a list of vinyls sorted like this:
Touch Me
49ERS
Everything
49ERS
Touch Me
49ERS
How Longer
49ERS
and I am using this code:
self.vinyls.sort(by: { (vinyl1, vinyl2) -> Bool in
return vinyl1.artist < vinyl2.artist
})
But I wanted to sort it like this:
Touch Me
49ERS
Touch Me
49ERS
Everything
49ERS
How Longer
49ERS
How would I do that?