Returns a priority of an item.
Use this function to determine a priority of an item. The priority must have been set by SetPriority().