Hi VIPStephan
if you select „Position“ option of Item filter in Admin, the IM automatically sorts the list according to the position attribute. You can change 'DESC' to 'ASC' if you want to reverse the order:
![[Image: srt_pos_back.jpg]](https://dl.dropbox.com/s/nu0s2p9zae80lg4/srt_pos_back.jpg)
To sort the results via the API you can use filterItems() - method.
Here is an example of sorting user list in descending order based on position:
if you select „Position“ option of Item filter in Admin, the IM automatically sorts the list according to the position attribute. You can change 'DESC' to 'ASC' if you want to reverse the order:
![[Image: srt_pos_back.jpg]](https://dl.dropbox.com/s/nu0s2p9zae80lg4/srt_pos_back.jpg)
To sort the results via the API you can use filterItems() - method.
Here is an example of sorting user list in descending order based on position:
PHP Code:
$manager = new IManager();
$category = $manager->getCategoryClass();
$item = $manager->getItemClass();
$users_cat = $category->getCategory('name=Users');
$item->init($users_cat->get('id'));
$item->filterItems('position', 'DESC');
echo '<pre>';
print_r($item->items);
echo '</pre>';