Weird effective sample size instability

Perhaps the ordered transform could help you? See #5 on Colin’s blog post.