Function Effective-Sorting-Order

Part of:

package elprep
( effective-sorting-order < sorting-order > < header > < original-sorting-order > )
Determine effective sorting order: Some filters may destroy the sorting order recorded in the input.
If this happens, and requested sorting order is :keep, then we need to effectively sort the result
according to the original sorting order.