fixed bug with share sorting