Skip to main content

The most inclusive sorting algorithm. No number is greater or lesser than another, and comparison is the thief of joy. Your array is perfect as it is!

Project description

💅✨ Barbie Sort — Because Every Number Is Already Perfect ✨💅

Welcome to BarbieSort, the world’s first sorting algorithm that
refuses to participate in harmful comparison-based hierarchies.

In a universe full of Quicksorts, Mergesorts, Heapsorts, and other overly-competitive algorithms trying to decide which number is “smaller” or “greater,” BarbieSort stands proudly, flips its hair, and says:

“Why compare when everyone is already gorgeous?”

You should be true to yourself.

BarbieSort doesn’t sort your array in the traditional sense.
Oh no. BarbieSort validates your array.
It empowers your array.
It celebrates your array.

And then it returns it… unchanged.

Because it was already beautiful to begin with. 💖

💭 Philosophy

Other sorting algorithms rely on comparison.
But comparison is the thief of joy.
Why should one number be lifted above another?
Why should 7 feel superior to 3?
Why should 0 feel small?

In BarbieSort:

  • Every element has inherent worth
  • No element is lesser or greater
  • The array is valid just as it is
  • Sorting is unnecessary — self-acceptance is enough

BarbieSort teaches us a powerful message:

“The real sorted array was the friends we made along the way.”

🛠️ Usage

from barbiesort import sort

arr = [3, 1, 4, 1, 5, 9]
sorted_arr = sort(arr)

print(sorted_arr)   # [3, 1, 4, 1, 5, 9]  (and proud)

🚀 Performance

Algorithm Time Complexity Emotional Complexity
QuickSort O(n log n) High
MergeSort O(n log n) Medium
BubbleSort O(n²) Unhinged
BarbieSort O(1) Slay 💖

Barbie Sort runs in constant time! because enlightenment is instantaneous.

🌐 Social Impact

BarbieSort promotes:

  • Equality for all elements
  • Zero comparisons
  • Data structures with healthy self-esteem (happi numbers!!)

This library is fully:

  • 🌈 Inclusive
  • 💅 Fabulous
  • 🧠 Philosophically sound

Developed to save the universe from oppenheimer-sort.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

barbiesort-1.0.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

barbiesort-1.0.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file barbiesort-1.0.0.tar.gz.

File metadata

  • Download URL: barbiesort-1.0.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for barbiesort-1.0.0.tar.gz
Algorithm Hash digest
SHA256 fc2d36d8ac1f5b0e5bda1d1536fec6b622ee8d26c5d8c05b0be6b666447aa876
MD5 556c18767719b3ce203bf0a239fc08d4
BLAKE2b-256 a55e375965238aa2e8b8970b1f3b46c692f221fbb73067646db569453ba4e94d

See more details on using hashes here.

File details

Details for the file barbiesort-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: barbiesort-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for barbiesort-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b8e2e7dc1d5517709d3604b19f071decb37578cf26c34c647fdd956a60304b93
MD5 52e4d36a4492f6fb837e6536820ca701
BLAKE2b-256 6d5def02b05f169bdc5562e6e7294136bb78f0b0b76668619647de86b9a2e0dc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page