# Ordering integers in case list

I created an app that is a simple survey, the first question being the
Number of the survey, which I am using as one of the case properties in my
case list on the app. In the logic, the question requires input of an
Integer. I would like the case list to arrange the surveys by Number of the
survey. Instead of arranging the cases 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
the case list orders them 1, 10, 11, 2, 3, 4, 5, 6, 7, 8, 9. How do I make
the case list order these integers correctly as 1, 2, 3, … instead of 1,
10, 11, 2?

Emily

Hey Emily,

In your Case List configuration in the application builder (choose the
module, then choose the Case List tab), there should be a section that
controls how the cases are sorted. You should be able to sort the cases by
that integer.
https://confluence.dimagi.com/display/commcarepublic/Case+List+and+Case+Detail+Configuration

Thanks,
Sheel

··· On Tue, Jul 7, 2015 at 6:49 PM, Emily Weiss wrote:

I created an app that is a simple survey, the first question being the
Number of the survey, which I am using as one of the case properties in my
case list on the app. In the logic, the question requires input of an
Integer. I would like the case list to arrange the surveys by Number of the
survey. Instead of arranging the cases 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
the case list orders them 1, 10, 11, 2, 3, 4, 5, 6, 7, 8, 9. How do I make
the case list order these integers correctly as 1, 2, 3, … instead of 1,
10, 11, 2?

Emily

You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an