[BUG FIX] Fix wrong expression

Fix wrong expression when sorting a joined list