[Serusers] how to sort data retrieved from avp_db_load in avpopsmodule

Richard richard at o-matrix.org
Sun Mar 20 20:19:23 CET 2005


> Hi Minh,
> 
> After loading the AVPs via apv_db_load() function you will have in
> memory the AVP list exactly in the revert order than in database. Ex: if
> you had for avp "test" values A, B, C and D, after loading you will have
> the order D, C, B and A.

Can anyone think of a way to set the order in the database? I think that it
is probably impractical, if not impossible.

Is this reverse order by design or by implementation? My ser logic heavily
relies on the behavior. I wonder if any future upgrade might break it if it
is just how the code is implemented.

Richard





More information about the sr-users mailing list