Ask is moving to Stack Overflow and! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode


order of list elements after reading from mdsal

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

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 -0800

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 -0800 )edit
Login/Signup to Answer

Question Tools



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

Seen: 217 times

Last updated: Aug 05 '15