Skip to main content

Timeline for Moving items around in a queue

Current License: CC BY-SA 3.0

6 events
when toggle format what by license comment
Jul 8, 2015 at 9:19 comment added Ilja @paullb basically it sorts list elements in different ordered lists, if item is moved right change it with right list element, or if its last move it to next ordered list, if that ordered list is last move it to first, this is vice versa if element is moved left. And there is a placeholder there that should not be considered as a valid element, so there are checks to account for it. The only way I can think of to move it into separate functions is still using if else statements and only bit I clean up is that && direction ones :/
Jul 8, 2015 at 9:14 history edited paullb CC BY-SA 3.0
added 142 characters in body
Jul 8, 2015 at 9:14 comment added paullb @IlyaKnaup It's really hard to tell what is going on from this code but could you split it up into two functions, one for "right" and one for "left"?
Jul 8, 2015 at 9:10 history edited paullb CC BY-SA 3.0
deleted 1 character in body
Jul 8, 2015 at 9:08 review First posts
Jul 8, 2015 at 10:38
Jul 8, 2015 at 9:03 history answered paullb CC BY-SA 3.0