Sorting by Number

4 posts by 3 authors in: Forums > CMS Builder
Last Post: August 29, 2008   (RSS)

By InHouse - August 28, 2008

I would like to sort the records in a Section Editor to be displayed based on the order of a text field in that Editor. This field will only store integers.

When I sort by this field, the sorting is that silly format where it looks like:

11
12
13
1
2
21
22
23
3
etc.
Is there any way around this? I don't want to have to enter 01 instead of 1.

Cheers,
J.

Re: [Dave] Sorting by Number - Answered.

By InHouse - August 29, 2008

Thanks all.

Dave, I suspected that was the cause. The sort by fieldname+0 solution worked like a charm and was a bit less invasive than the other option (which also worked BTW).

Sorry for the extra posting! I knew I had seen a thread on this topic before but somehow managed to miss it in my search.

J.