Explore various approaches for sorting a list based on the order of elements in another list.
Search Results for: sorting
Sorting Java Map in Descending Order
A quick and practical guide to sorting Java Map in descending order.
Sorting a HashSet in Java
Learn multiple techniques to sort the elements of a HashSet.
Sorting Objects in a List by Date
Learn how to sort a Java Collection by Date object in both ascending and descending modes.
Case Insensitive Sorting in MongoDB
MongoDB’s default lexical sorting may not be suitable for all purposes. Here we look at a couple of techniques for sorting to keep letters together even if they’re in a mix of upper and lowercase.
Partitioning and Sorting Arrays with Many Repeated Entries with Java Examples
Learn different ways to partition and sort an array containing many repeated entries.
Guide to In-Place Sorting Algorithm Works with a Java Implementation
Learn how the in-place sorting algorithm works.
Sorting Strings by Contained Numbers in Java
A quick and practical tutorial to sorting Strings by contained numbers in Java.
Sorting Arrays in Java
Learn how to sort arrays or primitive types and objects in ascending and descending order
Pagination and Sorting using Spring Data JPA
Learn how to paginate and sort query results in Spring Data JPA.
Sorting Query Results with Spring Data
Learn different ways to sort results in Spring Data queries.
Sorting a String Alphabetically in Java
Have a look at different ways to sort a String alphabetically in Java.
CrudRepository, JpaRepository, and PagingAndSortingRepository in Spring Data
Learn about the different flavours of repositories offered by Spring Data.
Sorting in Java
Practical introduction to sorting in Java.
Sorting with Hibernate
Sort with Hibernate 4 using HQL or the Criteria API.
Sorting with JPA
How to Sort in JPA using JQL or the Criteria API.
How to Implement Elvis Operator in Java 8
Implement the Elvis operator in Java 8 using the Optional class and ternary operator.
How to Test a Spring AOP Aspect
Learn how to conduct unit and integration tests on Spring AOP aspects.
How to Use Pair With Java PriorityQueue
Learn how to use Comparators with PriorityQueues and how to change the sorting order in such queues.
Different Ways to Use Limit and Skip in MongoRepository
Explore the skip and limit functionalities within MongoRepository.