Make treeDisplay.js sort things by compeltedFlag first, then priority.