Got sorts and property customization working with Query.extend().