Use vector instead of list for sortOrder

issue #178
I've added `sortOrderVect.reserve(3);` before three times of `sortOrderVect.push_back`.