Add priority with sorting