Script to sort category items by titles