Quantcast
Viewing all articles
Browse latest Browse all 26374

Dynamic distribution

I was struck with a problem

scenario:

i need to display list of page links grouped by the first letter of one of the fields.

display group headers for all 26 letters of the alphabet.If letter does not have any names no need to display.

always start a column with a new letter.Display output evenly over 5columns (best distribution method).

i tried by dividing 26letters into 5columns giving 5letters each..but according to the above condition if there no entries for f,g,h,i,j that column will be empty violating the rule of evenly distributing into 5columns.

so the distribution should be dynamic in such a way that even if there are no entries for some letters the rest should be distributed in this 5columns.

plz help me if you have best approach or code that gives some idea.




Viewing all articles
Browse latest Browse all 26374

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>