#sorting

Bas Terwijn :python:bterwijn@fosstodon.org
2025-11-29

Algorithms can at first seem complex to students, but with memory_graph every step is clearly visualized, giving students an intuitive understanding of what their code is doing and making bugs much easier to spot and fix. Here's an example Bubble Sort algorithm: memory-graph.com/#codeurl=http

#Python #programming #memory_graph #sorting

Danny Boling ☮️IAmDannyBoling@mstdn.social
2025-11-21

:amazon: "The ‘Most Recent’ sort option has been removed from Amazon’s review system across both desktop and mobile for most products."

In fact, you have NO options for #sorting or #filtering anymore. None at all.

You get 8-10 #reviews — of Amazon's choice — and that's it. That's all you can see now.

We'd already decided to totally quit #Amazon after our #AmazonPrime runs out in February. This makes our decision that much easier.

Here's my chat with a rep yesterday.

#Capitalism #IAmDB

[1/2 This is a mockup of an Amazon chat I had yesterday. The entire chat was too long to fit in the character limit so the rest of the Alt Text for this image is in the other, identical image of the post.]


Amazon — Trisha has joined the chat

D — I can't filter or sort product reviews any more. I should be able to sort by Most Recent. Removing that functionality was a big mistake!

Amazon — Hi there, Daniel! I completely understand your frustration—being able to sort reviews by ‘Most Recent’ is really helpful when making decisions. Amazon recently updated the review system, and some sorting options like ‘Most Recent’ may no longer appear for certain products.
Here’s what you can still do:- Use the filter options such as ‘Top reviews’ or ‘Verified purchase’ to narrow down reviews.- Check the review date manually—reviews are still listed with their posting date.- If you’re on the mobile app, try switching to the desktop site, as it sometimes offers more sorting options.
I’ll also share your feedback internally because we know how important this feature is for customers.

D — No. I need Most Recent. And I'm on the desktop site. Whoever thought this was a good idea needs to be fired or demoted. 

(continued)[2/2 This is a continuation of the Amazon chat because the full text was too long to fit in the character limit.  The first part of the Alt Text for this image is in the other, identical image of the post.]

(continuing) 
Amazon — Thanks for confirming you’re on the desktop site! Unfortunately, the ‘Most Recent’ sort option has been removed from Amazon’s review system across both desktop and mobile for most products. I know this is frustrating, and your feedback is really valuable—I’ll make sure it’s shared internally because many customers rely on that feature. For now, the best workaround is:- Use filters like Verified Purchase or Star Rating to narrow reviews.- Check the review dates manually—they’re still shown on each review.- Use the search bar within reviews to find recent keywords (e.g., “November” or “recent”).

D — Just put the function back. I've got to go now.

Amazon — Alright, will do request it to the headquarters and IT department.
End of chat
Bas Terwijn :python:bterwijn@fosstodon.org
2025-11-11

Algorithms can at first seem complex to students, but with memory_graph every step is clearly visualized, giving students an intuitive understanding of what their code is doing and making bugs much easier to spot and fix. Here's an example Insertion Sort algorithm: memory-graph.com/#codeurl=http

#Python #programming #memory_graph #sorting

2025-11-06

Sort the keys and values in a dictionary in Python
rodstephensbooks.com/sort_dict
#Python #Sorting #Dictionaries

Dictionary items in natural order, sorted by key, and sorted by value in Python
2025-10-31

It occurred to me today that "Stalin Sort" is related to the Stirling numbers of the first kind, really obvious when you think about it, actually.

Stalin sort is the sorting algorithm that goes as follows. Go down the line and shoot (remove) any element that is not in order. What remains is trivially sorted.

If you are sorting a list with unique entries, i.e., a permutation, then any permutation can be put into a special form (Foata's fundamental bijection en.wikipedia.org/wiki/Permutat) where you represent it as cycles where each cycle has its maximum displayed first, and the cycles are arranged in increasing order of those (example below from wikipedia)

Permutation matrix:
\(\begin{smallmatrix} 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 \\ 3 & 7 & 5 & 9 & 1 & 6 & 8 & 2 & 4\end{smallmatrix}\)

In cycle form:
\((5 1 3) (6) (8 2 7) (9 4)\)

This means that to each permutation, the sequence you would get by stalin sort is the same sequence as you would get by viewing it as a permutation written in this form.

The (unsigned) Stirling numbers \(s(n,k)\) of the first kind are used to count permutations according to how many cycles they have.
en.wikipedia.org/wiki/Stirling

If we sum over all permutations we get \(s(n+1,2)\) (OEIS A000254), so the expected length of a permutation of length \(n\) after the gunnery squad has performed their duty is \(\dfrac{s(n+1, 2)}{n!} = H_n\)

Figured this was too short for a blog post.

#combinatorics #sorting

Dennis Alexis Valin Dittrichdavdittrich@fediscience.org
2025-10-28

There's Nothing in the Air arxiv.org/abs/2510.22294
"the urban wage growth premium: substantially faster wage growth in larger cities
… part of this premium is driven by the firms that choose to sort themselves into bigger cities
… eliminating the job ladder mechanism, the urban wage growth premium falls by 94.1% after accounting for firms and coworkers.
… results challenge the view that cities generate human capital spillovers “in the air,” suggesting instead that urban wage dynamics reflect the #sorting of firms and workers and the pace of job #mobility."
#wages #matching #LaborMarkets

2025-10-27

Two new mosaics for my mosaic print series. One made from text from a very old, tiny bible, and the other from text from an old, German art dictionary. Cut up and sorted. madandmoonly.com/doctormatt/so

#art #sorting #mosaic

A square image of text of an old, english-language bible, cut up into squares and then sorts by "darkness", with the darker squares to the left.A mosaic made from a square image of text from an old, german-language art dictionary, cut into small squares and sorted by darkness from left to right.
2025-10-25

Сравнение алгоритмов сортировки на Python с Pygame-визуализацией

Когда объясняешь школьникам или студентам, как работает сортировка, графика говорит громче слов. Наверняка, в интернете полно обзоров и сравнительных анализов различных алгоритмов сортировки, но я не нашел ничего что объединяло бы самые популярные алгоритмы в одном сравнительном экстазе. Поэтому я написал визуализатор, который показывает в реальном времени , как разные алгоритмы сортируют один и тот же массив — одновременно .

habr.com/ru/articles/960178/

#python #pygame #sorting

Frontend Dogmafrontenddogma@mas.to
2025-10-22

When I Say “Alphabetical Order,” I Mean “Alphabetical Order”, by (not on Mastodon or Bluesky):

sebastiano.tronto.net/blog/202

#sorting

N-gated Hacker Newsngate
2025-10-19

🚨BREAKING NEWS: The earth-shattering that and sort differently has finally been uncovered! 😱 We can finally sleep at night knowing that the universe is safe, all thanks to Wang's daring investigation into... order. 🌎✨
blog.zhimingwang.org/macos-lc_

2025-10-01

📆 How much #plastic is currently recycled in the Netherlands, Belgium and Germany? What #sorting techniques do these countries use? And how can systems for collecting, sorting and pre-treating plastic be optimized? Scientists from the EU project #Syschemiq provide answers in the online workshop “Collection and sorting of plastic waste in the trilateral region” on October 21.

✍️ Participation in the workshop is free of charge. Registrations can be made at s.fhg.de/3uEr.

2025-08-04

One day, one decomposition
A001855: Sorting numbers: maximal number of comparisons for sorting n elements by binary insertion

3D graph, threejs - webGL ➡️ decompwlj.com/3Dgraph/Sorting_
3D graph Gen, threejs animation ➡️ decompwlj.com/3DgraphGen/Sorti
2D graph, first 500 terms ➡️ decompwlj.com/2Dgraph500terms/

#decompwlj #math #mathematics #sequence #OEIS #javascript #php #3D #sorting #numbers #comparisons #binary #insertion #graph #threejs #webGL

Decomposition into weight × level + jump of sorting numbers in 3D (threejs - WebGL) (log(weight), log(level), log(jump))Decomposition into weight × level + jump of sorting numbers in 2D (log(weight), log(level))
Jens Oliver Meiert 🇺🇳 🇵🇸j9t@mas.to
2025-07-28
2025-07-12
A week or so ago I had a sorting day. I'm looking for any innovative suggestions on sorting techniques or storage hacks that you #AFOL folks have found or developed. Drop them in the comments.
#Lego #LegoStorage #sorting #lifehacks #verygoodidea
a collection of Lego bricks being sorted
Gay CurmudgeonHermitsDaily
2025-07-06

I'm such an archivist that I save and file every personal letter I receive. My latest, and first from her sent to our new house, was from friend Joan.

2025-06-15

Tim Peters is reliably good at a memorable turn of phrase:

"Professor Knuth's masterful work on the topics of sorting and searching spans nearly 800 pages of sophisticated technical text. In Python practice, we reduce it to two imperatives (we read Knuth so you don't have to)..."
– Tim Peters, from his introduction to chapter 5, "Searching and Sorting", in the 2nd edition of the Python Cookbook (2005).

"Over the years samplesort was in use, I made a standing offer to buy dinner for anyone who could code a faster Python sort. Alas, I ate alone."
– Tim Peters, from his introduction to chapter 5, "Searching and Sorting", in the 2nd edition of the Python Cookbook (2005).

(4/6)

#Python #sorting #Knuth

2025-06-07

Не пузырьком единым. Поговорим об алгоритмах сортировки

Если спросить любого, хоть немного знакомого с ИТ человека, какие алгоритмы сортировки он знает, то самым популярным ответом будет, конечно, сортировка методом пузырька. Однако в реальности это, конечно, не единственный способ сортировки. В этой статье мы поговорим о том, какие алгоритмы сортировки бывают и как их можно реализовать на Python.

habr.com/ru/companies/otus/art

#sorting #алгоритмы #алгоритмы_сортировки #python

2025-05-26
Sorted out a lot of the smaller things I had lying around. And organized them in these convenient bins #sorting #organising #label #organised #hobby

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst