BugFix: Fix sort function to refer to proper property