Ask Your Question

order of list elements after reading from mdsal

asked 2015-08-04 03:42:06 -0700

luna gravatar image


I'm saving and reading a custom model to/from md-sal, which contains a list. The list contains some elements in a specific order, before i store the model, the list has the proper ordering. (expected ordering) After reading the same from md-sal, the order of elements is changed. I had expected, that the list elements would remain in the same ordering, as the java list interface specifies that the ordering will preserved. Is there some way to preserve changes to the order. I know its bad practice to rely on ordering of elements, i'm just wondering why it is like that.. Can anyone acknowloedge this behaviour ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-08-05 07:00:11 -0700

Dana gravatar image

Check RFC6020

ordered-by user;
edit flag offensive delete publish link more


that did the trick. thanks it works now

luna ( 2015-08-06 13:51:14 -0700 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools



Asked: 2015-08-04 03:42:06 -0700

Seen: 182 times

Last updated: Aug 05 '15