db.textdb_wrapper: sorting working for TextDb.