Investors & landlords

Thank you for your response.  Can you direct me to this law or rule somewhere online?  I've been looking, but can't find it.  Everything I read says that you can only deduct long term gains against long term losses, and short term gains against short term losses.  I cannot find anything about what type of loss to use first when deducting $3000 against my income.