[racket] ordering issue in select-input formlet

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Tue Mar 29 11:25:41 EDT 2011

I just pushed a patch that should resolve this.

(The elements are added to a hash to get them back when the request
gets submitted and were put into the page in hash order, which is not
consistent. I changed it slightly to use the original order.)


2011/3/29 Eric Tanter <etanter at dcc.uchile.cl>:
> Hi,
> I'm using the select-input formlet in a form. I pass it a list and a display function, but it gets displayed in a wrong (arbitrary) order.
> In my app the list is built by hand:
> (define USERS (list (user "john" "j at foo.com")
>                    (user "joe"  "j at bar.com") ...))
> and the formlet displays the list as:
> ... (td  ,{(select-input USERS #:display user-name) ...
> any idea why the names do not show up in the expected order?
> Thanks,
> -- Éric
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/users

Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University

"The glory of God is Intelligence" - D&C 93

Posted on the users mailing list.