added sorted_items function to sort dictionary items with pyuca
use sorted_items in add bdag script
use sorted_items in add danker script
use sorted_items in add dodson script
use sorted_items in add morphcat script
use sorted_items in check pos script