Added a priority function to list items