Re: ordering help

2008-01-30 Thread Rajesh Dhawan
Just copying my emailed response here for posterity. > > I have a database that stores unit numbers in postgresql eg 3B , 2, 5 , 4C, 1 etc.. so it had to be string type for the letters but now i want to order them in ascending order on the template eg. I would do the following: In your Unit o

ordering help

2008-01-30 Thread leahy_rich
Hi Guys I have a database that stores unit numbers in postgresql eg 3B , 2, 5 , 4C, 1 etc.. so it had to be string type for the letters but now i want to order them in ascending order on the template eg. 1, 2, 3b etc.. The problem is in my view function def summary(request): unit_list = U