         <span class="action-text">Upload Files</span>
                    </div>
                    <div class="action-menu">Sort by:
                        <ui-select ng-model="document.selectedSortItem" ng-disabled="document.docs.length === 0 ? true : false" ng-options="item.name for item in document.sortedItems" ng-change="document.sortOptionValue = document.selectedSortItem.value; document.selectedSortItem.reverse ? document.sortOptionReverse = !document.sortOptionReverse : document.sortOptionReverse