Implements columns ordering by adding order query filter.