Skip to content

Instantly share code, notes, and snippets.

@Bastianowicz
Created April 14, 2020 11:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bastianowicz/119b37951f053b8209add1750f421384 to your computer and use it in GitHub Desktop.
Save Bastianowicz/119b37951f053b8209add1750f421384 to your computer and use it in GitHub Desktop.
Order Semantic Version in Datastudio

Problem

Datastudio only provides ordering in 2 Dimensions. This is a problem when you want to order semantic versions of an application.

Solution

  • make major, minor and patch version accessable as single fields
  • Create a field in datastudio or in your data connector for your order like this

(major_version * 1000000) + (minor_version * 1000) + patch_version

  • order your list by this number
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment