Re: ars_GetListEntry
Brought to you by:
jeffmurphy
|
From: Miriam Y. <mir...@gs...> - 1996-12-26 18:17:39
|
I would like to sort on an integer field and I use the following piece of code
in my cgi script:
$counter= ars_GetFieldByName($ctrl, $schema, "Total Log Count");
if(!defined $counter){
&error_routine("Unable to retrieve field id for Total Log Count:\
$ars_errstr");
}
%entries = ars_GetListEntry($ctrl, $schema, $qual, 0, $counter, 2);
But when I print out the results the entries aren't in sorted order - why would
that occur???
Thanks alot.
Miriam
On Dec 24, 2:57pm, Jeff Murphy wrote:
> Subject: Re: ars_GetListEntry
>
> GetListEntry is the only function that sorting really
> applies to. to specify a "sort within a sort" simply add the
> additional sort critirea to the end of the command:
>
> %foo = getlistentry(...., $fieldId1, 1); # sort ascending on fieldId1
>
> %foo = getlistentry(...., $fieldId1, 1, $fieldId2, 2);
> # sort ascending on fieldId1 and then descending on fieldId2
>
>
>
> Miriam Yaged insists:
> >
> >Using this function (or any other function) - is it possible to specify a
sort
> >within a sort?
> >
> >Thanks.
> >
> >--
> >
>
>
> --
> jcm...@ac... sunyab cit oss network
management
> standard disclaimers apply
http://smurfland.cit.buffalo.edu/~jcmurphy/
> ``Men forget but don't forgive. Women forgive but never forget.''
>-- End of excerpt from Jeff Murphy
|