{{ if ( eq ( .Scratch.Get "listMode" ) "log" ) }} {{ .Scratch.Set "filterCol" "name" }} {{ .Scratch.Set "filterDir" "asc" }} {{ else }} {{ .Scratch.Set "filterCol" "name" }} {{ .Scratch.Set "filterDir" "asc" }} {{ end }} {{ range ( sort ( index $.Site.Data.games ( .Scratch.Get "listMode" ) ) ( .Scratch.Get "filterCol" ) ( .Scratch.Get "filterDir" ) ) }}