Updated writeSubmission to take unordered predictions and order them
based on the required submission order. This may not be necessary, but
will help with validating differences in files through a consistent
format.