Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Challenges

Post History

66%
+2 −0
Challenges Sort letters by height

Japt, 23 16 15 13 bytes Lexicographical sort using the custom alphabet tipbdghkflyqj. I/O as characters arrays, sorts in ascending order. n`“pbdghkf§qj Try it

posted 1y ago by Shaggy‭  ·  edited 11mo ago by Shaggy‭

Answer
#6: Post edited by user avatar Shaggy‭ · 2023-06-06T11:43:46Z (11 months ago)
  • # [Japt](https://github.com/ETHproductions/japt), <s>23</s> <s>16</s> <s>15</s> 13 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • Lexicographical sort using a custom alphabet. I/O as characters arrays, sorts in ascending order.
  • n`“pbdghkf§qj
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&header=cQ&code=bmCTcGJkZ2hrZqdxag&input=InBqenR5aXgiCi1Q)
  • # [Japt](https://github.com/ETHproductions/japt), <s>23</s> <s>16</s> <s>15</s> 13 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • Lexicographical sort using the custom alphabet `tipbdghkflyqj`. I/O as characters arrays, sorts in ascending order.
  • n`“pbdghkf§qj
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&header=cQ&code=bmCTcGJkZ2hrZqdxag&input=InBqenR5aXgiCi1Q)
#5: Post edited by user avatar Shaggy‭ · 2023-06-06T11:41:08Z (11 months ago)
  • # [Japt](https://github.com/ETHproductions/japt), <s>23</s> <s>16</s> 15 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • Naïve solution, sorting by index in a compressed string. I/O as characters arrays, sorts in ascending order.
  • ñ!b`“pbdghkf§qj
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&header=cQ&code=8SFiYJNwYmRnaGtmp3Fq&input=InBqenR5aXgiCi1Q)
  • # [Japt](https://github.com/ETHproductions/japt), <s>23</s> <s>16</s> <s>15</s> 13 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • Lexicographical sort using a custom alphabet. I/O as characters arrays, sorts in ascending order.
  • n`“pbdghkf§qj
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&header=cQ&code=bmCTcGJkZ2hrZqdxag&input=InBqenR5aXgiCi1Q)
#4: Post edited by user avatar Shaggy‭ · 2022-11-02T10:16:19Z (over 1 year ago)
  • # [Japt](https://github.com/ETHproductions/japt), <s>23</s> 16 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • Naïve solution, sorting by index in a compressed string. I/O as characters arrays, sorts in ascending order.
  • ñ!b`“bdfghklpqyj
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&header=cQ&code=8SFiYJNiZGZnaGtscHF5ag&input=Imp1c3QiCi1Q)
  • # [Japt](https://github.com/ETHproductions/japt), <s>23</s> <s>16</s> 15 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • Naïve solution, sorting by index in a compressed string. I/O as characters arrays, sorts in ascending order.
  • ñ!b`“pbdghkf§qj
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&header=cQ&code=8SFiYJNwYmRnaGtmp3Fq&input=InBqenR5aXgiCi1Q)
#3: Post edited by user avatar Shaggy‭ · 2022-11-02T10:06:42Z (over 1 year ago)
  • # [Japt](https://github.com/ETHproductions/japt), <s>23</s> 16 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • Naïve solution, sorting by index in a compressed string. I/O as characters arrays, sorts in descending order.
  • ñ!b`“bdfghklpqyj
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&header=cQ&code=8SFiYJNiZGZnaGtscHF5ag&input=Imp1c3QiCi1Q)
  • # [Japt](https://github.com/ETHproductions/japt), <s>23</s> 16 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • Naïve solution, sorting by index in a compressed string. I/O as characters arrays, sorts in ascending order.
  • ñ!b`“bdfghklpqyj
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&header=cQ&code=8SFiYJNiZGZnaGtscHF5ag&input=Imp1c3QiCi1Q)
#2: Post edited by user avatar Shaggy‭ · 2022-11-02T10:06:20Z (over 1 year ago)
  • # [Japt](https://github.com/ETHproductions/japt), 23 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • Naïve solution, sorting by a custom alphabet. I/O as characters arrays, sorts in descending order.
  • n`jyqplkhgfdbŠzxwv«žn´¯
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&header=cQ&code=bmBqeXFwbGtoZ2ZkYop6eHd2q55utK8&input=Imp1c3QiCi1Q)
  • # [Japt](https://github.com/ETHproductions/japt), <s>23</s> 16 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • Naïve solution, sorting by index in a compressed string. I/O as characters arrays, sorts in descending order.
  • ñ!b`“bdfghklpqyj
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&header=cQ&code=8SFiYJNiZGZnaGtscHF5ag&input=Imp1c3QiCi1Q)
#1: Initial revision by user avatar Shaggy‭ · 2022-11-02T09:37:33Z (over 1 year ago)
# [Japt](https://github.com/ETHproductions/japt), 23 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)

Naïve solution, sorting by a custom alphabet. I/O as characters arrays, sorts in descending order.

    n`jyqplkhgfdbŠzxwv«žn´¯

[Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&header=cQ&code=bmBqeXFwbGtoZ2ZkYop6eHd2q55utK8&input=Imp1c3QiCi1Q)