Learn how to sort a list with a custom type when you want to use a fallback search criteria. Eg sort by last name, then first name if those match.
This article demonstrates how to code a bubble sort that sorts a list of strings in a case insensitive manner using Go.
This tutorial demonstrates in detail how to adapt a bubble sort implementation written in Go to sort a list of numbers in reverse (non-increasing) order, rather than the default non-decreasing order. It is a useful trick to learn as it will help you custom sort other data types in the future.
Learn to code the bubble sort algorithm in Go by walking through a coding example and then working on several practice problems to reinforce the knowledge. If you have ever wanted to learn algorithms, this series is a great place to start.
This tutorial covers bubble sort, explaining how the sorting algorithm works with visual examples. It also covers ways to optimize the algorithm.
Sign up for my mailing list and I'll send you a FREE sample from my course - Web Development with Go. The sample includes three chapters from the book, and over 2.5 hours of screencasts.
You will also receive notifications when I release new articles, along with other freebies that I only share with my mailing list.
Jon Calhoun is a full stack web developer who also teaches about Go, web development, algorithms, and anything programming related. He also consults for other companies who have development needs. (If you need some development work done, get in touch!)
Jon is a co-founder of EasyPost, a shipping API that many fortune 500 companies use to power their shipping infrastructure, and prior to founding EasyPost he worked at google as a software engineer.
©2018 Jonathan Calhoun. All rights reserved.