--[[
    This script is executed whenever no modality specific sequence sorting script is available
    
	Cristian Bonciu		October 15, 2004        
	-	CREATED for defining the default sequence sorting hints for the rarely 
		used modalities. The code should be based only on the properties extracted 
		by ExtractCommon.tls
	Allan Noordvyk         January 15, 2005
	-	Filled in body.
	Mahesh Nagarajan	February 31, 2007
	- 	Modified syntaxes for sorting hints as part of v11.5 re-write
	-	Site customized code will be removed and re-located to SortOther.site files -> starting with 11.5, 
		unless sort orders are fundamentally flawed, all change requests to sorting schemes will be
		incorporated into a site file for the site.		
]]--


function Execute()
    
    TraceC( "Executing sort for Other...\n" )

    -- Note that since this is a generic script covering multiple modalities
    -- we do not do a modality sanity check.
	
    local sortHint01 = SortingHint:new("Other Sequence Sort", "DEFAULT")
    
    -- Beyond that, simply chronological
    sortHint01:AddEntry(SERIES_DATE_TAG)
    sortHint01:AddEntry(SERIES_TIME_TAG)
    sortHint01:AddEntry(SERIES_NUMBER_TAG)
    sortHint01:AddEntry(PHASE_PROP)    
    sortHint01:AddEntry(ACQ_NUMBER_TAG)   
    
    -- Ensure some unique order even if all time is the same
    sortHint01:AddEntry(SERIES_UID_TAG)
        
    SortSequencesInStudy(sortHint01) 
    
    TraceC( "Completed Sort for Other.\n" )
    
end
