Lionel Elie Mamane committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=0b0c99edbbd29a89ddc5af60f9abba141e42a4a4 tdf#92538 pgsql-sdbc make a reasonable sorting of types It will be available in 5.2.0. -- Stéphane Aulery