Take into account order between FROM/TO/BY.