[fix] Improve sorting of the relics while printing