betweenGo

RQLQueryRange does not sort dates correctly

by Frank Kim on Nov.20, 2009, under Page Development

Roppongi District Desktop on Flickr

(Photo: Roppongi District Desktop by powerbooktrance)

This was bedeviling me for awhile.  I could not figure out why my RQLQueryRange droplet was not sorting by dates correctly.  It turns out this is a known ATG bug which only happens when you are using Oracle, which is 99% of the time.

Considering that this bug has been open since 2003 one can assume ATG is not interested in fixing it.  This is probably because there is a simple work around.

Instead of using the sortProperties parameter, put the the sort directive directly in the RQL statement in the queryRQL parameter.

<dsp:param name="queryRQL" value="ALL ORDER BY creationDate DESC"/>


  • Share/Bookmark

Related posts:

  1. Comparison of DSP and DSPEL
  2. TargetingRange ignoring start param
  3. Sorting Nested Properties
  4. How to Debug No Output for ATG ForEach
  5. How to Debug an InvalidVersionException from Updating an ATG Order

:, ,

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!