Harris, N. (2015). LazySorted: A Lazily, Partially Sorted Python List. Journal of Statistical Software, Code Snippets, 65(1), 1–10. https://doi.org/10.18637/jss.v065.c01