newdb: Fix sorting of is_multiple fields

Fix sorting of book list by multi-valued fields like tags not correct in
the new backend. Fixes #1215820 [different ordering by tags in the 1.0 version](https://bugs.launchpad.net/calibre/+bug/1215820)