Complex array sort compiles