Updatin list with jquery ajax and jQuery Waypoints infinite scroll

Updatin list with jquery ajax and jQuery Waypoints infinite scroll

Hello, I have few problems.

I try to use http://imakewebthings.com/jquery-waypoints/shortcuts/infinite-scroll/, to load more in my list when i arrive on the end of the list.

I do not found better way for that. I have a lot of data.

So It works. BUT. When I load from another php. more <li> rows, and they have right classes attributes, but somehow I do not have the usual list look like in normal way wit JQM.

I can not figure out why it do not formating it.

Another stuff is, that I can not find a logic or way, how to make that if I have a data from complicated query, how to get first 10 data, after when i finished another data what is in my query after the first 10 one ....

I do not have ordering by IDs, so I can not use it like if smaller, or if bigger.

Example:

list-item2
list-item33
list-item4
list-item1
list-item0
list-item22
list-item3
list-item8
list-item9
list-item14
list-item224

I want to load first 3:
list-item2
list-item33
list-item4

when I scroll to last item list-item4 to show more 3
list-item2
list-item33
list-item4
list-item1
list-item0
list-item22

and like that...