Fixed sort order parameter in local sqlitestorage