PubnubClient: improved streaming message sorting algorithm, fixed bug with duplicate timestamps