convert openViews to array so that ng-repeat can sort