Added codes to sort items by thier title or URL in ascending and vice versa order