Order by custom field

Hi,

I have problem with ORDER BY custom field in searching tickets. Tickets
are not sorted by chosen custom field.

I have RT 3.6.1 on debian sarge 2.6.8-2.

Does anybody know why?

Thanks for help.

Peter