How do you sort an array of structs in swift How do you sort an array of structs in swift arrays arrays