aDouble is a double property. anInt32Key is the identity property. The first example returns aDouble values in ascending order, and the second example returns them in descending order.
<?php
$queryOptions->AddFeatureProperty("aDouble");
$queryOptions->AddFeatureProperty("anInt32Key");
$stringCollection->Add("aDouble");
$queryOptions->SetOrderingFilter($stringCollection, MgOrderingOption::Ascending);
$featureService->SelectFeatures($featureSrcResourceId, $featClassName, $queryOptions);
$queryOptions->SetOrderingFilter($stringCollection, MgOrderingOption::Descending);
$featureService->SelectFeatures($featureSrcResourceId, $featClassName, $queryOptions);
?>
sqlplus> select anint32key,adouble from universalclassxy order by adouble ASC;
sqlplus> select anint32key,adouble from universalclassxy order by adouble DESC;