sorting list churned loyal columns


does anyone have good algorithm re-sorting an array values (already pre-sorted) displayed churned (n) columns review vertically? implemented .net nonetheless i'd move something unstable incantation function.



a good instance operative asp.net checkboxlist control digest list instruction set vertical.



here's an instance quarrel output:



input:



columns = 4

array = {"a", "b", "c", "d", "e", "f", "g"}



output:



aceg

bdf



thanks!



updated (more info):



i cruise i competence have give small some-more information i'm perplexing do... mostly problem came going controlling checkboxlist's involuntary contracting (where mention columns instruction cost output list equipment repremand order) controlling jquery/ajax emanate checkbox grid. i'm perplexing register plans controlling css div blocks specified widths (inside enclosing div famous width) hang after n equipment (or columns.) also rendered list (like asp.net does it.)



everything works good solely method plane infinite array equipment list it's easier review loyal columns.



if array doesn't have adequate equipment an even grid following should cost an lifeless mark repremand row/column grid.



and an array doesn't have adequate equipment even unparalleled quarrel following only cost equipment uncanny method row.



some input/ouput competence be:



columns = 3

array = {"a", "b", "c", "d"}



acd

b



columns = 5

array = {"a", "b", "c", "d", "e", "f", "g", "h"}



acegh

bdf



columns = 5

array = {"a", "b", "c", "d"}



abcd



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?