Use vector instead of list for sortOrder

issue #178
In the case we know the number of elements to be pushed in advance, we should specifiy the number to the vector object to improve performance. And it's one of the advantages of vector.

Here it can be done by using reserver() before calling push_back() such as
sortOrderVect.reserve(3);