# valuelist sorting problem

**URL:** <https://forum.servoy.com/t/valuelist-sorting-problem/3056>\
**Category:** Classic Servoy\
**Created:** [November 14, 2004, 2:02pm UTC](https://forum.servoy.com/t/valuelist-sorting-problem/3056 "2004-11-14T14:02:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gstein](https://avatars.discourse-cdn.com/v4/letter/g/c89c15/32.png) [@gstein](https://forum.servoy.com/u/gstein)\
**Post date:** [November 14, 2004, 2:02pm UTC](https://forum.servoy.com/t/valuelist-sorting-problem/3056/1 "2004-11-14T14:02:48Z")

</div>

I have a valuelist called People which is based on the People table. It is set to return id\_people to the dataprovider and show name\_last, name\_first in the field/list. It is also set to sort by name\_last, name\_first.

If I set the field displaytype to combobox everything is fine, but since the list of people is so big, I set the displaytype to TypeAhead. When that happens, the drop-down list is sorted by id\_people and not by name\_last, name\_first.

Is there anything that I can do about this???

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [November 15, 2004, 1:40pm UTC](https://forum.servoy.com/t/valuelist-sorting-problem/3056/2 "2004-11-15T13:40:29Z")

</div>

i fixed this in 2.1.2. The order by was generated wrong.  
You can fix this youreself also if you want, define the last\_name, first\_name as first things in the 3 list. So the return value should be defined in the last list.

---

<div class="post-metadata">

**Author:** ![gstein](https://avatars.discourse-cdn.com/v4/letter/g/c89c15/32.png) [@gstein](https://forum.servoy.com/u/gstein)\
**Post date:** [November 15, 2004, 1:53pm UTC](https://forum.servoy.com/t/valuelist-sorting-problem/3056/3 "2004-11-15T13:53:35Z")

</div>

Yup. That did it. Thanks!!!
