Changes due to the newly added .sort property

When db.Rqeury is created, one needs to take care of .sort property.