The Baeldung logo
  • The Baeldung Logo
  • Start Here
  • Spring Courses ▼▲
    • REST with Spring Boot

      The canonical reference for building a production grade API with Spring

    • Learn Spring Security

      THE unique Spring Security education if you’re working with Java today

    • Learn Spring

      From no experience to actually building stuff​

    • Learn Spring Data JPA

      The full guide to persistence with Spring Data JPA

    • View All Spring Courses

  • Java Courses ▼▲
    • Learn JUnit

      Master the most popular Java testing framework.

    • Learn Maven

      Simplify Your Build with Apache Maven

    • Learn Hibernate JPA

      Master persistence with the Java specification and Hibernate implementation

    • Learn Mockito

      Enhance your unit tests through practical mocking

    • View All Courses

  • AI Courses ▼▲
    • Foundations of AI Coding

      Learn to work effectively with AI coding agents, from prompting to shipping production code.

    • Build Your Agentic AI Harness

      Harness engineering for developers building real AI systems.

  • Pricing
  • About ▼▲
    • Full Archive

      The high level overview of all the articles on the site.

    • Baeldung Ebooks

      Discover all of our eBooks

    • About Baeldung

      About Baeldung.

Category upJava

Java String » Sorting

In the following list, you’ll find examples of common operations that you can perform on Java Strings.

  • Regex (79)
  • Java Characters (60)
  • String Conversions (54)
  • Apache Commons Lang (37)
  • Java String Basics (34)
  • StringBuilder (29)
  • Guava (11)
  • JMH (9)
  • Java Search (9)
  • Performance (8)
  • Java Null (8)
  • toString (8)
  • x Sorting (7)

>> Sorting Alphanumeric Strings in Java

>> Sort an Array of Strings According to String Lengths

>> Sort Date Strings in Java

>> Check if Two Strings Are Anagrams in Java

>> Sorting Strings by Contained Numbers in Java

>> Removing Repeated Characters from a String

>> Sorting a String Alphabetically in Java

Course – Black Friday 2026 – NPI EA – main – sidebar1
opt-in
Course – Black Friday 2026 – NPI – main – sidebar1
opt-in
The Baeldung logo

Courses

  • All Courses
  • Baeldung All Access
  • Baeldung All Team Access
  • Login Course Platform

Series

  • Java “Back to Basics” Tutorial
  • Spring Tutorial
  • Spring Framework Introduction
  • Learn Spring Boot Series
  • Get Started with Java
  • All About String in Java
  • Java IO Series

About

  • About Baeldung
  • The Full Archive
  • Editors
  • Our Partners
  • Partner with Baeldung
  • eBooks
  • FAQ
  • Baeldung Pro
  • Terms of Service
  • Privacy Policy
  • Company Info
  • Contact
The Baeldung Logo