From 1f96b13a162f555a4e2f275b7b8d41b70a4f571d Mon Sep 17 00:00:00 2001 From: Ashutosh Singh Date: Mon, 13 Sep 2021 00:29:46 +0530 Subject: [PATCH] Sort project and blog tags alphabetically --- lib/blogs/blog_data.dart | 5 ++++- lib/projects/project_data.dart | 5 ++++- lib/projects/projects.dart | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/blogs/blog_data.dart b/lib/blogs/blog_data.dart index 474b6bc..8518ad9 100644 --- a/lib/blogs/blog_data.dart +++ b/lib/blogs/blog_data.dart @@ -7,7 +7,10 @@ class BlogData { required this.tags, required this.url, required this.read, - }) : assert(description.length < Constants.charLimitCardDesc); + }) { + assert(description.length < Constants.charLimitCardDesc); + tags.sort(); + } final String title; final String description; diff --git a/lib/projects/project_data.dart b/lib/projects/project_data.dart index 85800f7..1733898 100644 --- a/lib/projects/project_data.dart +++ b/lib/projects/project_data.dart @@ -7,7 +7,10 @@ class ProjectData { required this.gitHub, required this.link, this.technologies = const [], - }) : assert(description.length < Constants.charLimitCardDesc); + }) { + assert(description.length < Constants.charLimitCardDesc); + technologies.sort(); + } final String title; final String description; diff --git a/lib/projects/projects.dart b/lib/projects/projects.dart index d5df45a..489b476 100644 --- a/lib/projects/projects.dart +++ b/lib/projects/projects.dart @@ -61,7 +61,7 @@ final data = [ gitHub: "https://github.com/thecodepapaya/udhari", link: "https://play.google.com/store/apps/details?id=com.thecodepapaya.udhari", - technologies: ["Flutter", "Django", "DRF", "Dart"], + technologies: ["Flutter", "Django", "DRF", "Dart", "Python"], ), ProjectData( title: "FASE - Post-covid attendance solution",