San Francisco has become the first known city to track its LGBTQ workforce as well as to ask applicants for city and county jobs what is their sexual orientation and gender identity.