How to sort table storage entries based on one column with DataType as DateTime

Hi

Please explain how to retrieve records from Azure Table Storage having different columns with different datatypes eg. String, DateTime, Int etc. and sort these records so that I can loop on those based on DateTime type col.

I am able to retrieve records from table using

New-Object System.Collections.Generic.List[string] to create an entity, but when I sort these based on DateTime Value,  I am not retrieiving in correct order. I guess this mistake is because I am putting values of table in list of type string.

Please help.

Regards

Robin

July 24th, 2015 1:34am

Use the PowerShell Sort-Object command to sort a table by date:

$entity | sort-object <datefieldname>

help sort-object -full

Free Windows Admin Tool Kit Click here and download it now
July 24th, 2015 3:19am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics