HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How to Sort an Array and Arraylist Alphabetically - Android Studio Tutorial

36,247 views November 12, 2018 4:47

Watch on YouTube
ChannelCoding in Flow

Description from the creator

In this video we will learn, how to sort a string array and an ArrayList of custom objects alphabetically. For this we will use the Array.sort method and the Collections.sort method. For the latter we will build our own Comparator and override it's compare method.

RecyclerView and CardView Dependencies:
developer.android.com/topic/libraries/support-l…
developer.android.com/topic/libraries/support-l…

Source code:
gist.github.com/codinginflow/2bd16cc54cc19a12ba…

____________________
💻 Find the BEST programming tutorials on TutHub:
tuthub.io

⭐ Get my MVVM Caching Course now:
codinginflow.com/caching

❗ Subscribe to the channel:
youtube.com/c/codinginflo...

📨 Subscribe to the Coding in Flow newsletter:
codinginflow.com/newsletter

❓ Join our free developer community:
discord.gg/TSnMvmc

📣 Follow Coding in Flow on other sites:
Facebook: facebook.com/codinginflow
Instagram: instagram.com/codinginflow
TikTok: tiktok.com/@codinginflow
Twitter: twitter.com/codinginflow
Github: github.com/codinginflow

💰 Business requests, sponsoring, etc.: [email protected]

About this tutorial

Coding in Flow published this 4:47 video tutorial on November 12, 2018. It has been watched 36,247 times on YouTube.

Duration
4:47
Published
November 12, 2018
Views
36,247
Likes
397

Tags

Share

This tutorial in other languages