Cool problem! Although I would like to indicate first what [String: MyClass]is a Dictionary, not a Tupule.
However, Swift does support Tupules. The syntax for your tupule will look like this:
var tupule: (String, MyClass) = (foo, bar)
Then you will need to create an array of them:
var tupules:[(String, MyClass)] = [(foo, bar), (up, dog)]
Then you can sort this array:
tupules.sort({ $0[1].myString > $1[1].myString })
although you probably should define a more robust sorting mechanism.
This is the contents of the close sort:
$0 - , , $1 - . $0 [1] $1 [1] 1, , tupule, MyClass
, .