Change the order of the ScanById query constructor