Added importing of priorities
Sort priority listing on sortKey