INTERACT FORUM

Please login or register.

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

Author Topic: Sorting by disc number  (Read 1040 times)

Vincent Kars

  • Citizen of the Universe
  • *****
  • Posts: 1154
Sorting by disc number
« on: January 26, 2013, 05:09:11 pm »

I sorted by disc and by track but somehow it doesn't work properly on disc #
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Sorting by disc number
« Reply #1 on: January 26, 2013, 05:27:20 pm »

Empty and 1 are considered the same with Disc # when using formatted values.

Make them use either, but not both of those values.  Or use [Disc #,0] as an expression column.
Logged
The opinions I express represent my own folly.

Vincent Kars

  • Citizen of the Universe
  • *****
  • Posts: 1154
Re: Sorting by disc number
« Reply #2 on: January 26, 2013, 05:37:34 pm »

Hi MrRegex

I did nothing
Care to explain these formatted values?
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Sorting by disc number
« Reply #3 on: January 26, 2013, 05:51:19 pm »

The values you see in cells and panes are formatted.  They are pretty-printed versions of the raw, actual stored data, or have special treatment applied to certain values or operations (such as for integer or decimal types treating 0 and blank as the same, or for [Disc #] blank and 1 as the same).

A field has two forms of expression:

   Raw:         [field,0]
   Formatted: [field,1]  (the default)

MC uses the formatted version by default (so you can just enter [field]).  So in the case of Disc #, both blank and 1 are treated as one and the same.
Logged
The opinions I express represent my own folly.

Vincent Kars

  • Citizen of the Universe
  • *****
  • Posts: 1154
Re: Sorting by disc number
« Reply #4 on: January 26, 2013, 05:54:13 pm »

Thanks

Looks like I have a feature request…
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Sorting by disc number
« Reply #5 on: January 26, 2013, 05:58:30 pm »

Just change the column you show, from [Disc #] instead to an expression column with the value [Disc #,0] and it will sort the way you want.
Logged
The opinions I express represent my own folly.
Pages: [1]   Go Up