@@ -34,5 +34,6 @@
</trim>
GROUP BY
tpir.person_id, tpir.building_id
+ ORDER BY SUM(tpir.intention) DESC
</select>
</mapper>