INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Is this view sorting scheme possible?  (Read 2394 times)

raldo

  • Citizen of the Universe
  • *****
  • Posts: 1102
Is this view sorting scheme possible?
« on: September 16, 2015, 02:44:06 am »

I have a two level view scheme. The top level expression displays as [Year] [.Season] [Event] where season is "Spring", "Summer",etc. based on the file date. [EDIT]

I'd like to sort the top level by the individual file dates.

As an example, imagine you have an event which runs from late August into early September. I've defined August as a summer month and September as a fall month. But currently, I can only get the top level to sort by the top level. In other words, it would look something like this:

2015 Fall Vacation
[..other..]
[..other..]
[..other..]
2015 Spring Some Other Event
[..other..]
2015 Summer Vacation
[..other..]

Whereas I would like it to look like this:
[..other..]
[..other..]
[..other..]
2015 Spring Some Other Event
[..other..]
[..other..]
2015 Summer Vacation
2015 Fall Vacation
[..other..]

Does this make sense?

Logged

ferday

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1732
Re: Is this view sorting scheme possible?
« Reply #1 on: September 16, 2015, 08:37:04 am »

Could you make a new field [season#] where ifelse(isequal([.season],spring),1......) to give the seasons a numerical value and then sort on that field?

Alternatively you could change your [.season] expression to the above and then display it as ifelse(isequal([.season],1),Spring....)

Not sure how either might work for you if at all, just pondering
Logged

raldo

  • Citizen of the Universe
  • *****
  • Posts: 1102
Re: Is this view sorting scheme possible?
« Reply #2 on: September 22, 2015, 02:57:02 am »

Could you make a new field [season#] where ifelse(isequal([.season],spring),1......) to give the seasons a numerical value and then sort on that field?
[...]

This would only sort after season order. This is nice, but not exactly what I was looking for.

I'd like the toplevel items to be sorted according to the underlying file dates so that the toplevel items are ordered according to when the photos were taken.
Logged

ferday

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1732
Re: Is this view sorting scheme possible?
« Reply #3 on: September 23, 2015, 11:08:42 am »

I'm thinking though, add it to your current sorting level

[year] [season#] [event]...

It should produce the same results as what you have now, except that the seasons would now effectively be 1spring 2summer 3fall 4winter which should sort them correctly within your current scheme....

unless I misunderstand it seems that your only real issue is that fall is alphabetically first...?
Logged
Pages: [1]   Go Up