Fixing type and alignment sort in Chrome