且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在特定的排序逻辑中逐个选择在线用户列表?

更新时间:2023-12-02 14:30:46

为此使用setInterval(function()(jquery)并给出时间间隔,它取值为毫秒的值。 / BLOCKQUOTE>

Hi,

I need to list all online users, working with help of web api service. And its listing in a sort order of online user in alphabetical order after that offline users in alphabetical order. And need to pick data part by part to avoid large data transfer time like facebook scroll down updation. I picking the data part by part using linq skip() and take() methods.

What my problem affecting is my list of datas order changing time by time that one user got online or one got offline. This changing make my data picking method skip() and take() taking the same data multiple time or laps some data due lack or same order of data in adjusent data picking.

How I able to solve the problem ?

for this use setInterval(function () (jquery) and give time interval which takes value interms of miliseconds.